package com.rescue.mapper;

import com.github.pagehelper.Page;
import com.rescue.forum.entity.UserMessage;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMessageMapper {

    void save(UserMessage userMessage);


    Integer getCountByType(Integer typeSysMessage,Integer userId);

    Page<UserMessage> getByTypeAndUserId(Integer messageType, Integer userId);
}
